package com.shop.cereshop.agent.page.referral;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description: 代理商辖区店铺详情响应VO
 * @author
 * @date 2025/11/7
 * @version 1.0
 */
@Data
@ApiModel(value = "AgentShopDetailVO", description = "代理商辖区店铺详情响应")
public class AgentShopDetailVO {

  @ApiModelProperty(value = "店铺ID")
  private Long shopId;

  @ApiModelProperty(value = "店铺名称")
  private String shopName;

  @ApiModelProperty(value = "店铺地址")
  private String shopAddress;

  @ApiModelProperty(value = "负责人姓名")
  private String chargePersonName;

  @ApiModelProperty(value = "负责人手机号")
  private String chargePersonPhone;

  @ApiModelProperty(value = "总营业额")
  private BigDecimal totalAmount;

  @ApiModelProperty(value = "总订单数")
  private Integer totalOrderNum;

  @ApiModelProperty(value = "订单列表")
  private List<ShopOrderVO> orderList;

  /**
   * 店铺订单VO
   */
  @Data
  @ApiModel(value = "ShopOrderVO", description = "店铺订单信息")
  public static class ShopOrderVO {

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "下单时间")
    private String createTime;

    @ApiModelProperty(value = "订单金额（营业额）")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "分润金额")
    private BigDecimal incomeAmount;
  }
}
